package com.niiwoo.civet.account.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 换绑卡审核类型枚举
 * Created by wangjichao on 2017/11/18.
 */
@AllArgsConstructor
@Getter
public enum BankCardRebindAuditTypeEnum {
    MANUAL((byte)1,"人工审核"), AUTO((byte)2,"系统自动审核");

    private Byte value;
    private String desc;

    public static BankCardRebindAuditTypeEnum enumOf(Byte value) {
        for (BankCardRebindAuditTypeEnum type : values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        throw new NoSuchEnumValueException("BankCardRebindAuditTypeEnum:" + value);
    }

}
